RE: Windows settings cause crash (originally: FAIL!!!)

RE: Windows settings cause crash (originally: FAIL!!!)

am 13.10.2008 16:48:36 von greg augustine

--_f776c3b0-55e3-428c-a88c-773a4c695eeb_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Also=2C the ThreadsPerChild is 250 and MaxRequestsPerChild 50000> From: gr=
egaug@hotmail.com> To: modperl@perl.apache.org> Subject: FAIL!!!> Date: Mon=
=2C 13 Oct 2008 07:47:35 -0500> > > hello=2C> > I'm trying to get mod_perl =
running under Windows. I used the latest perl from ActiveState (5.8.8.824)=
=2C Apache 2.2.9 from apache.org=2C and mod_perl 2.0.4=2C installed from pp=
m. When I ran a simple perl script and had 20 simulated users hitting the p=
age=2C it eventually said 'Out of memory!' and restarted with a status of 0=
.. The second time it happened=2C it tried to restart=2C but couldn't. Does =
anyone know if these versions actually work together? If they do=2C any tho=
ughts on what could be wrong?> > code:> > use strict=3B> > > my $err =3D 'e=
h'=3B> > my $body=3B> > my $errstr =3D int(rand(2))=3B> > print 'Content-ty=
pe: text/html'=2C'\n\n'=2C$err=2C': '=2C$errstr=2C'\nSERVER_ADDR: '=2C($ENV=
{'SERVER_ADDR'} || $ENV{'COMPUTERNAME'})=2C'\n'=3B> if($errstr){> $errstr =
=3D~ s/\://g=3B > $errstr =3D~ s/\n/ /g=3B > $body =3D 'Error Text: '=2C$er=
rstr=2C'\n'=3B > }> print '\n'=3B> print scalar(localtime())=3B> if($body){=
$body =3D~ s/\n//g=3B }> print $body=3B> > > Apache error.log> > Out of me=
mory!> [Fri Oct 10 14:25:34 2008] [notice] Parent: child process exited wit=
h status 0 -- Restarting.> [Fri Oct 10 14:25:34 2008] [notice] Apache/2.2.9=
(Win32) mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operation=
s> [Fri Oct 10 14:25:34 2008] [notice] Server built: Jun 13 2008 04:04:59> =
[Fri Oct 10 14:25:34 2008] [notice] Parent: Created child process 1712> [Fr=
i Oct 10 14:25:34 2008] [debug] mpm_winnt.c(487): Parent: Sent the scoreboa=
rd to the child> [Fri Oct 10 14:25:34 2008] [notice] Disabled use of Accept=
Ex() WinSock2 API> [Fri Oct 10 14:25:34 2008] [notice] Child 1712: Child pr=
ocess is running> [Fri Oct 10 14:25:34 2008] [info] Parent: Duplicating soc=
ket 244 and sending it to child process 1712> [Fri Oct 10 14:25:34 2008] [d=
ebug] mpm_winnt.c(408): Child 1712: Retrieved our scoreboard from the paren=
t.> [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(605): Parent: Sent 1 lis=
teners to child 1712> [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(564): =
Child 1712: retrieved 1 listeners from parent> [Fri Oct 10 14:25:34 2008] [=
notice] Child 1712: Acquired the start mutex.> [Fri Oct 10 14:25:34 2008] [=
notice] Child 1712: Starting 250 worker threads.> [Fri Oct 10 14:25:34 2008=
] [notice] Child 1712: Listening on port 80.> Out of memory!> [Fri Oct 10 1=
5:07:14 2008] [notice] Parent: child process exited with status 0 -- Restar=
ting.> > ____________________________________________________________ _____>=
See how Windows connects the people=2C information=2C and fun that are par=
t of your life.> http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/0=
1/
____________________________________________________________ _____
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live .com-Blog-cns!5=
50F681DAD532637!5295.entry?ocid=3DTXT_TAGLM_WL_domore_092008 =

--_f776c3b0-55e3-428c-a88c-773a4c695eeb_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable






Also=2C the ThreadsPerChild is 250 and =3BMaxRequestsPerChild =3B 5=
0000

>=3B From: gregaug@hotmail.com
>=3B To: modperl@perl.apa=
che.org
>=3B Subject: FAIL!!!
>=3B Date: Mon=2C 13 Oct 2008 07:47=
:35 -0500
>=3B
>=3B
>=3B hello=2C
>=3B
>=3B I'm=
trying to get mod_perl running under Windows. I used the latest perl from =
ActiveState (5.8.8.824)=2C Apache 2.2.9 from apache.org=2C and mod_perl 2.0=
..4=2C installed from ppm. When I ran a simple perl script and had 20 simula=
ted users hitting the page=2C it eventually said 'Out of memory!' and resta=
rted with a status of 0. The second time it happened=2C it tried to restart=
=2C but couldn't. Does anyone know if these versions actually work together=
? If they do=2C any thoughts on what could be wrong?
>=3B
>=3B c=
ode:
>=3B
>=3B use strict=3B
>=3B
>=3B
>=3B my =
$err =3D 'eh'=3B
>=3B
>=3B my $body=3B
>=3B
>=3B my $=
errstr =3D int(rand(2))=3B
>=3B
>=3B print 'Content-type: text/h=
tml'=2C'\n\n'=2C$err=2C': '=2C$errstr=2C'\nSERVER_ADDR: '=2C($ENV{'SERVER_A=
DDR'} || $ENV{'COMPUTERNAME'})=2C'\n'=3B
>=3B if($errstr){
>=3B $=
errstr =3D~ s/\://g=3B
>=3B $errstr =3D~ s/\n/ /g=3B
>=3B $body=
=3D 'Error Text: '=2C$errstr=2C'\n'=3B
>=3B }
>=3B print '\n'=
=3B
>=3B print scalar(localtime())=3B
>=3B if($body){ $body =3D~ =
s/\n//g=3B }
>=3B print $body=3B
>=3B
>=3B
>=3B Apach=
e error.log
>=3B
>=3B Out of memory!
>=3B [Fri Oct 10 14:25=
:34 2008] [notice] Parent: child process exited with status 0 -- Restarting=
..
>=3B [Fri Oct 10 14:25:34 2008] [notice] Apache/2.2.9 (Win32) mod_pe=
rl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations
>=3B [Fr=
i Oct 10 14:25:34 2008] [notice] Server built: Jun 13 2008 04:04:59
>=
=3B [Fri Oct 10 14:25:34 2008] [notice] Parent: Created child process 1712<=
BR>>=3B [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(487): Parent: Sent=
the scoreboard to the child
>=3B [Fri Oct 10 14:25:34 2008] [notice] =
Disabled use of AcceptEx() WinSock2 API
>=3B [Fri Oct 10 14:25:34 2008=
] [notice] Child 1712: Child process is running
>=3B [Fri Oct 10 14:25=
:34 2008] [info] Parent: Duplicating socket 244 and sending it to child pro=
cess 1712
>=3B [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(408): Ch=
ild 1712: Retrieved our scoreboard from the parent.
>=3B [Fri Oct 10 1=
4:25:34 2008] [debug] mpm_winnt.c(605): Parent: Sent 1 listeners to child 1=
712
>=3B [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(564): Child 17=
12: retrieved 1 listeners from parent
>=3B [Fri Oct 10 14:25:34 2008] =
[notice] Child 1712: Acquired the start mutex.
>=3B [Fri Oct 10 14:25:=
34 2008] [notice] Child 1712: Starting 250 worker threads.
>=3B [Fri O=
ct 10 14:25:34 2008] [notice] Child 1712: Listening on port 80.
>=3B O=
ut of memory!
>=3B [Fri Oct 10 15:07:14 2008] [notice] Parent: child p=
rocess exited with status 0 -- Restarting.
>=3B
>=3B ___________=
______________________________________________________
>=3B See how Wi=
ndows connects the people=2C information=2C and fun that are part of your l=
ife.
>=3B http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/ =



Get more out of the Web. Learn 10 hidden secrets of Windows=
Live. ive.com-Blog-cns!550F681DAD532637!5295.entry?ocid=3DTXT_TAGL M_WL_getmore_09=
2008' target=3D'_new'>Learn Now

=

--_f776c3b0-55e3-428c-a88c-773a4c695eeb_--

Re: Windows settings cause crash (originally: FAIL!!!)

am 14.10.2008 05:52:53 von Foo JH

You may want to try 2 options:
1. Use an older version of the Apache build like 2.2.6. It has been
known to be fairly stable.
2. Try the build from ApacheLounge. It's generally not favoured, but it
seems to handle some things better.

greg augustine wrote:
> Also, the ThreadsPerChild is 250 and MaxRequestsPerChild 50000
>
> > From: gregaug@hotmail.com
> > To: modperl@perl.apache.org
> > Subject: FAIL!!!
> > Date: Mon, 13 Oct 2008 07:47:35 -0500
> >
> >
> > hello,
> >
> > I'm trying to get mod_perl running under Windows. I used the latest
> perl from ActiveState (5.8.8.824), Apache 2.2.9 from apache.org, and
> mod_perl 2.0.4, installed from ppm. When I ran a simple perl script and
> had 20 simulated users hitting the page, it eventually said 'Out of
> memory!' and restarted with a status of 0. The second time it happened,
> it tried to restart, but couldn't. Does anyone know if these versions
> actually work together? If they do, any thoughts on what could be wrong?
> >
> > code:
> >
> > use strict;
> >
> >
> > my $err = 'eh';
> >
> > my $body;
> >
> > my $errstr = int(rand(2));
> >
> > print 'Content-type: text/html','\n\n',$err,':
> ',$errstr,'\nSERVER_ADDR: ',($ENV{'SERVER_ADDR'} ||
> $ENV{'COMPUTERNAME'}),'\n';
> > if($errstr){
> > $errstr =~ s/\://g;
> > $errstr =~ s/\n/ /g;
> > $body = 'Error Text: ',$errstr,'\n';
> > }
> > print '\n';
> > print scalar(localtime());
> > if($body){ $body =~ s/\n//g; }
> > print $body;
> >
> >
> > Apache error.log
> >
> > Out of memory!
> > [Fri Oct 10 14:25:34 2008] [notice] Parent: child process exited with
> status 0 -- Restarting.
> > [Fri Oct 10 14:25:34 2008] [notice] Apache/2.2.9 (Win32)
> mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations
> > [Fri Oct 10 14:25:34 2008] [notice] Server built: Jun 13 2008 04:04:59
> > [Fri Oct 10 14:25:34 2008] [notice] Parent: Created child process 1712
> > [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(487): Parent: Sent the
> scoreboard to the child
> > [Fri Oct 10 14:25:34 2008] [notice] Disabled use of AcceptEx()
> WinSock2 API
> > [Fri Oct 10 14:25:34 2008] [notice] Child 1712: Child process is running
> > [Fri Oct 10 14:25:34 2008] [info] Parent: Duplicating socket 244 and
> sending it to child process 1712
> > [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(408): Child 1712:
> Retrieved our scoreboard from the parent.
> > [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(605): Parent: Sent 1
> listeners to child 1712
> > [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(564): Child 1712:
> retrieved 1 listeners from parent
> > [Fri Oct 10 14:25:34 2008] [notice] Child 1712: Acquired the start mutex.
> > [Fri Oct 10 14:25:34 2008] [notice] Child 1712: Starting 250 worker
> threads.
> > [Fri Oct 10 14:25:34 2008] [notice] Child 1712: Listening on port 80.
> > Out of memory!
> > [Fri Oct 10 15:07:14 2008] [notice] Parent: child process exited with
> status 0 -- Restarting.
> >
> > ____________________________________________________________ _____
> > See how Windows connects the people, information, and fun that are
> part of your life.
> > http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/
>
> ------------------------------------------------------------ ------------
> Get more out of the Web. Learn 10 hidden secrets of Windows Live. Learn
> Now
>

Re: Windows settings cause crash (originally: FAIL!!!)

am 14.10.2008 07:35:11 von wrowe

Before changing either detail that Foo JH pointed out, first try backing
down to activestate perl 5.8 build 820(?). It seemed to be a very stable build
for most people's use.

Foo JH wrote:
> You may want to try 2 options:
> 1. Use an older version of the Apache build like 2.2.6. It has been
> known to be fairly stable.
> 2. Try the build from ApacheLounge. It's generally not favoured, but it
> seems to handle some things better.
>
> greg augustine wrote:
>> Also, the ThreadsPerChild is 250 and MaxRequestsPerChild 50000
>>
>> > From: gregaug@hotmail.com
>> > To: modperl@perl.apache.org
>> > Subject: FAIL!!!
>> > Date: Mon, 13 Oct 2008 07:47:35 -0500
>> >
>> >
>> > hello,
>> >
>> > I'm trying to get mod_perl running under Windows. I used the latest
>> perl from ActiveState (5.8.8.824), Apache 2.2.9 from apache.org, and
>> mod_perl 2.0.4, installed from ppm. When I ran a simple perl script
>> and had 20 simulated users hitting the page, it eventually said 'Out
>> of memory!' and restarted with a status of 0. The second time it
>> happened, it tried to restart, but couldn't. Does anyone know if these
>> versions actually work together? If they do, any thoughts on what
>> could be wrong?
>> >
>> > code:
>> >
>> > use strict;
>> >
>> >
>> > my $err = 'eh';
>> >
>> > my $body;
>> >
>> > my $errstr = int(rand(2));
>> >
>> > print 'Content-type: text/html','\n\n',$err,':
>> ',$errstr,'\nSERVER_ADDR: ',($ENV{'SERVER_ADDR'} ||
>> $ENV{'COMPUTERNAME'}),'\n';
>> > if($errstr){
>> > $errstr =~ s/\://g;
>> > $errstr =~ s/\n/ /g;
>> > $body = 'Error Text: ',$errstr,'\n';
>> > }
>> > print '\n';
>> > print scalar(localtime());
>> > if($body){ $body =~ s/\n//g; }
>> > print $body;
>> >
>> >
>> > Apache error.log
>> >
>> > Out of memory!
>> > [Fri Oct 10 14:25:34 2008] [notice] Parent: child process exited
>> with status 0 -- Restarting.
>> > [Fri Oct 10 14:25:34 2008] [notice] Apache/2.2.9 (Win32)
>> mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations
>> > [Fri Oct 10 14:25:34 2008] [notice] Server built: Jun 13 2008 04:04:59
>> > [Fri Oct 10 14:25:34 2008] [notice] Parent: Created child process 1712
>> > [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(487): Parent: Sent
>> the scoreboard to the child
>> > [Fri Oct 10 14:25:34 2008] [notice] Disabled use of AcceptEx()
>> WinSock2 API
>> > [Fri Oct 10 14:25:34 2008] [notice] Child 1712: Child process is
>> running
>> > [Fri Oct 10 14:25:34 2008] [info] Parent: Duplicating socket 244
>> and sending it to child process 1712
>> > [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(408): Child 1712:
>> Retrieved our scoreboard from the parent.
>> > [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(605): Parent: Sent 1
>> listeners to child 1712
>> > [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(564): Child 1712:
>> retrieved 1 listeners from parent
>> > [Fri Oct 10 14:25:34 2008] [notice] Child 1712: Acquired the start
>> mutex.
>> > [Fri Oct 10 14:25:34 2008] [notice] Child 1712: Starting 250 worker
>> threads.
>> > [Fri Oct 10 14:25:34 2008] [notice] Child 1712: Listening on port 80.
>> > Out of memory!
>> > [Fri Oct 10 15:07:14 2008] [notice] Parent: child process exited
>> with status 0 -- Restarting.
>> >
>> > ____________________________________________________________ _____
>> > See how Windows connects the people, information, and fun that are
>> part of your life.
>> > http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/
>>
>> ------------------------------------------------------------ ------------
>> Get more out of the Web. Learn 10 hidden secrets of Windows Live.
>> Learn Now
>>
>>
>
>
>